//存放路由跳转
let str = localStorage.getItem('enableRouteList');
let enableRouteList = [];
if(str){
    console.log(str);
    enableRouteList = JSON.parse(str);
}

export default {
    namespaced: true,
    state:{
        enableRouteList,
    },
    action: {
        setRouteList({commit},payload){
            commit('doSetRoute',payload)
        }
    },
    mutations: {
        doSetRoute(state,payload){
            console.log('RouteList',payload);
            state.enableRouteList = payload;
        }
    },
}